This replication archive contains three main folders, the contents of which are described below:
1. data
2. code
3. results
All contents of this replication archive should be maintained within their current directory structure in order to allow for the R scripts to properly access necessary files. The R packages required are 'ggplot2', 'gridExtra', and 'MASS'. Runtimes for the R scripts can be found at the end of this document.

(1) The 'data' folder contains 1 (csv format) data file and a variable codebook. The data pertain to the study application.

(2) The 'code' folder contains 8 R scripts and an additional subfolder ('helper_functions') containing functions that are sourced by these R scripts.

The 'run_sims_no_interactions.R' and 'run_sims_with_interactions.R' scripts contain the code that runs the simulations presented in Figure 1 of the main study text and Figure D1 in the appendix. These scripts source the functions contained in 'CCM_Simulator_NoInt.R' and 'CCM_Simulator_WithInt.R', which are saved in the 'helper_functions' subfolder. The scripts then save the raw output of the simulations (in Rdata format) in the 'results' folder.

Note: The raw output of the simulations produced by the 'run_sims_no_interactions.R' and 'run_sims_with_interactions.R' scripts are already contained within the 'results/sims' subfolder in this replication archive.

The 'build_figure_1.R' and 'build_figure_D1.R' scripts load the saved raw output of the simulations and create Figures 1 and D1. These scripts source the function contained in 'CCM_CI_Plotter.R', which is saved in the 'helper_functions' subfolder. The scripts then save the figures (in pdf format) in the 'results' folder.

The 'build_tables_1_2.R', 'build_tables_F1_F2.R', 'build_table_G1.R', and 'build_tables_G2_G3_G4.R' scripts contain the code to create Tables 1 and 2 of the main study text and Tables F1, F2, G1, G2, G3, and G4 in the appendix. These scripts load the application data and source the function contained in 'CCM_Estimator.R', which is saved in the 'helper_functions' subfolder. The scripts then save the table results (in csv format) in the 'results' folder.

(3) The 'results' folder contains 3 subfolders.

The subfolder 'sims' contains the raw output of the simulations. The subfolder 'figures' contains the figures included in the main study text and appendix. The subfolder 'tables' contains the results presented in the tables in the main study text and appendix.

(*) Approximate runtimes for R scripts on a standard laptop (Intel Core i7-8750H @ 2.20 GHz, 16.00 GB RAM, Windows 10 64-bit) can be found below.

Simulations:

code/run_sims_no_interactions.R: ~ 5 minutes
code/run_sims_with_interactions.R: ~ 5 minutes

Results:

code/build_figure_1.R: < 1 minute
code/build_figure_D1.R: < 1 minute
code/build_tables_1_2.R: ~ 5 minutes
code/build_tables_F1_F2.R: < 1 minute
code/build_table_G1.R: ~ 5 minutes
code/build_tables_G2_G3_G4.R: ~ 10 minutes
